package bounty.service;

import bounty.domain.Bounty;
import bounty.domain.BountySubmission;
import bounty.mapper.BountyMapper;
import bounty.mapper.BountySubmissionMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;


import java.util.List;

// 悬赏 Service 接口
public interface BountyService {
    boolean saveBounty(Bounty bounty);
    IPage<Bounty> getBountiesByPage(Page<Bounty> page);
    Bounty getBountyById(Long id);
     // 新增：发布悬赏（带业务校验）
     boolean publishBounty(Bounty bounty);
     List<Bounty> getBounties();  //新增直接获得所有悬赏
}


